package com.dingli.framework.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * CREATE TABLE `user` (
 *   `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
 *   `user_name` varchar(11) DEFAULT NULL COMMENT '用户名称',
 *   `password` varchar(22) DEFAULT NULL COMMENT '密码',
 *   `phone` char(18) DEFAULT NULL COMMENT '电话',
 *   `id_card` varchar(18) DEFAULT NULL COMMENT '身份证号',
 *   `email` varchar(255) DEFAULT NULL COMMENT '电子邮箱',
 *   `age` int(3) DEFAULT NULL COMMENT '年龄',
 *   `sex` varchar(11) DEFAULT NULL COMMENT '性别',
 *   PRIMARY KEY (`user_id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 */
@Data
@ApiModel("用户信息表")
public class User {
    @ApiModelProperty("用户ID")
    private int userId;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("年龄")
    private int age;

    @ApiModelProperty("性别")
    private String sex;
}
